package com.dixiang.framework.network;

import android.content.Context;

/**
 * 网络回调抽象
 *
 * @param <T> 实现IResult接口
 * @author solo
 */
public abstract class NetUICallback<T extends IResult> implements INetCallback<T> {

    private static final String TAG = NetUICallback.class.getSimpleName();
    private Context context;
    public NetUICallback(Context context) {
    	this.context = context;
    }

    public void onSuccess(T result ,int flg){
    }
	public void onError(Exception ex ,T result , int flg){
	}
	public void onFailure(T result , int flg){
	}
	
	public void onSuccess(T result ,String flg){
	}
	public void onError(Exception ex ,T result , String flg){
	}
	public void onFailure(T result , String flg){
	}
	public void onSuccess(T result ){}
	public void onError(Exception ex ,T result ){
	}
	public void onFailure(T result ){
	}
	
	public void onHttpError(int msg){
	}
	public void onCompleted(Exception e, T result) {
	}
}
